export default function (plop) {
  plop.setGenerator("vue-component", {
    description: "生成Vue组件",
    prompts: [
      {
        type: "input",
        name: "name",
        message: "请输入组件名称："
      }
    ],
    actions: [
      {
        type: "add",
        path: "src/views/{{name}}/index.vue",
        templateFile: "plop-templates/init.vue.hbs"
      }
    ]
  });
}
